package com.example.hello.service;

import com.example.hello.mapper.UserMapper;
import com.example.hello.pojo.LoginInfo;
import com.example.hello.pojo.User;
import com.example.hello.pojo.UserBorrowCertificate;
import org.springframework.beans.factory.annotation.Autowired;

public interface UserService {

    void updateById(Integer id, LoginInfo loginInfo);

    /**
     * 根据用户 ID 查询用户数据
     * @param id 用户主键
     * @return 如果找不到返回 null
     */
    User getUserById(Long id);

    UserBorrowCertificate getCertificateById(Long id);
}
